patchelf fails on i386 vscode
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
https://launchpadlibrarian.net/393792896/buildlog_snap_ubuntu_xenial_i386_8530e5f76cb0f52c411b1e115ff18a11-xenial_BUILDING.txt.gz
Seems the i386 build of vscode hasn't built for a while due to patchelf failure.
Staging electron-launch
Staging vscode
Priming electron-launch
Priming vscode
virtual address space underrun!
Failed to update '/build/vscode/prime/usr/share/code/code'. Retrying after stripping the .note.go.buildid from the elf file.
virtual address space underrun!
An attempt to patch '/build/vscode/prime/usr/share/code/code' so that it would work correctly in diverse environments was made and failed. To disable this behavior set `build-attributes: [no-patchelf]` for the part.
'/build/vscode/prime/usr/share/code/code' cannot be patched to function properly in a classic confined snap: /usr/bin/patchelf --set-interpreter /snap/core/current/lib/ld-linux.so.2 --force-rpath --set-rpath $ORIGIN/lib/:$ORIGIN/../../lib/i386-linux-gnu:$ORIGIN/../../../lib/i386-linux-gnu:$ORIGIN:/snap/core/current/usr/lib/i386-linux-gnu:/snap/core/current/lib/i386-linux-gnu /tmp/tmpk1puj0w0 failed with exit code 1.
'patchelf 0.9' may be too old. A newer version of patchelf may be required.
Try adding the `after: [patchelf]` and a `patchelf` part that would filter out files from prime `prime: [-*]` or `build-snaps: [patchelf/latest/edge]` to the failing part in your `snapcraft.yaml` to use a newer patchelf.
Build failed
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 229, in run
self.build()
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 218, in build
env=env)
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 75, in run_build_command
return self.backend.run(args, env=full_env, **kwargs)
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/lxd.py", line 460, in run
subprocess.check_call(cmd, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['lxc', 'exec', 'lp-xenial-i386', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build_url": "https://launchpad.net/~build.snapcraft.io/+snap/8530e5f76cb0f52c411b1e115ff18a11-xenial/+build/355956"}', '--env', 'http_proxy=http://10.10.10.1:8222/', '--env', 'https_proxy=http://10.10.10.1:8222/', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', 'cd /build/vscode && linux32 snapcraft']' returned non-zero exit status 2
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/slavebin/in-target scan-for-processes --backend=lxd --series=xenial --arch=i386 SNAPBUILD-355956
Scanning for processes to kill in build SNAPBUILD-355956
Evaluation history
No evaluation history available.